<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>关联推广分类</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        推广分类>
        <a lay-href="/extension/serv/category/list.action">服务分类</a>>
        <zmn th:text="${extensionServCategName}+'>'"></zmn>
        关联推广分类
    </blockquote>

    <div class="layui-card">

        <div class="layui-card-body">
            <form method="post" action="" class="layui-form" lay-filter="zmn-form">

                <div class="layui-card-header" style="margin-top:10px;"><b>选择推广分类，提交后将与推广服务分类关联，原关联分类自动清理更新。</b></div>
                <div class="layui-split">&nbsp;</div>

                <div class="layui-form-item">
                    <div class="zmn-2layer-list">
                        <div class="right-box">
                            <tr th:each="m : ${extensionCategories}">
                                <div class="list-item" th:title="${m.name}">
                                    <input type="checkbox" name="extensionCategory" th:value="${m.categId}" th:title="${m.name}" th:checked="${m.status==2}">
                                </div>
                            </tr>
                        </div>
                    </div>
                </div>
                <!--按钮栏
                        置于form标签内的最下方，
                        主功能按钮使用默认样式，次要功能按钮使用原始按钮(加入样式layui-btn-primary)
                        -->
                <div class="layui-form-item submit">
                    <div class="layui-input-inline">
                        <button th:if="${#authPermit.checkPermit('/extension/serv/category/group/batchAddAssociation.action')}" class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">保存</button>
                        <button type="reset" class="layui-btn layui-btn-primary"
                                onclick="layui.admin.events.closeThisTabs();">取消
                        </button>
                    </div>
                </div>
                <div class="layui-split">&nbsp;</div>
            </form>
        </div>

    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    var json = {
        servCategId: [[${servCategId}]]
    };
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        relate_extension_serv_category_group_deatil: "extension/serv/category/group/zmn.plat.extension.serv.category.group.detail",
    }).use(['index', 'relate_extension_serv_category_group_deatil']);

</script>
</body>
</html>